//
//  ViewController.m
//  不同位置响应
//
//  Created by MyMac on 15/9/28.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "ViewController.h"
#import "CustomBtn.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CustomBtn*btn=[[CustomBtn alloc]initWithFrame:CGRectMake(100, 100, 200, 200)];
    //btn.backgroundColor=[UIColor clearColor];
   // [btn setBackgroundImage:[UIImage imageNamed:@"屏幕快照 2015-09-28 下午5.10.43"] forState:UIControlStateNormal  ];
    btn.startPoint=CGPointMake(30, 10);
    btn.endPoint=CGPointMake(176, 100);
    [btn addTarget:self action:@selector(bt:) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:btn];
 
    
    
    
    // Do any additional setup after loading the view, typically from a nib.
}
-(void)bt:(UIButton*)btn
{

    NSLog(@"btn1");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
